<template>
  <div class="root">
    <aside-menu />
    <div class="right-content" :class="{'in': !shrinked}">
      <header-bar />
      <div class="page-content">
        <Nuxt />
      </div>
      
    </div>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState([
      'shrinked'
    ]),
  }
}
</script>

<style lang="stylus">
.root {
  full(absolute);
  .right-content {
    position: absolute;
    top: 0;
    left: $aside-distance;
    right: 0;
    bottom: 0;
    transition: all $trans-time;
    &.in {
      left: $aside-short;
    }
    .page-content {
      position: absolute;
      top: $header-top;
      left: 0;
      right: 0;
      bottom: 0;
      background: $bg;  
    }  
  }
}
</style>
